package com.brodong.animal_remake.common.registers;

import com.brodong.animal_remake.Main;
import com.brodong.animal_remake.common.entities.monster.models.*;
import net.minecraft.world.item.Item;
import net.minecraftforge.common.ForgeSpawnEggItem;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;

public class ItemRegister {
    public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, Main.MOD_ID);
    //刷怪蛋格式:ForgeSpawnEggItem(生物类,颜色1,颜色2,放在哪个物品栏)
    public static final RegistryObject<Item> GECKO_TEST_EGG = ITEMS.register("gecko_test_spawn_egg",
            () -> new ForgeSpawnEggItem(EntityRegister.GECKO_TEST, 3093009, 65536, new Item.Properties().tab(Main.AnimalRemakeTab)));
    public static final RegistryObject<Item> MELEE_BASIC_EGG = ITEMS.register(MeleeBasicModel.name+"_spawn_egg",
            () -> new ForgeSpawnEggItem(EntityRegister.MELEE_BASIC, 4578765, 2325548, new Item.Properties().tab(Main.AnimalRemakeTab)));
    public static final RegistryObject<Item> FLYING_RANGE_BASIC_EGG = ITEMS.register(FlyingRangeBasicModel.name+"_spawn_egg",
            () -> new ForgeSpawnEggItem(EntityRegister.FLYING_RANGE_BASIC, 4578765, 2325548, new Item.Properties().tab(Main.AnimalRemakeTab)));

    public static final RegistryObject<Item> REMOTE_BASIC_EGG = ITEMS.register(RemoteBasicModel.name+"_spawn_egg",
            () -> new ForgeSpawnEggItem(EntityRegister.REMOTE_BASIC, 1234578, 4567869, new Item.Properties().tab(Main.AnimalRemakeTab)));
    public static final RegistryObject<Item> WITCH_BASIC_EGG = ITEMS.register(WitchBasicModel.name+"_spawn_egg",
            () -> new ForgeSpawnEggItem(EntityRegister.WITCH_BASIC, 456789, 1893483, new Item.Properties().tab(Main.AnimalRemakeTab)));
    public static final RegistryObject<Item> FLY_MELEE_BASIC_EGG = ITEMS.register(FlyMeleeBasicModel.name+"_spawn_egg",
            () -> new ForgeSpawnEggItem(EntityRegister.FLY_MELEE_BASIC, 4545129, 183483, new Item.Properties().tab(Main.AnimalRemakeTab)));
    public static final RegistryObject<Item> SKILL_BASIC_EGG = ITEMS.register(SkillBasicModel.name+"_spawn_egg",
            () -> new ForgeSpawnEggItem(EntityRegister.SKILL_BASIC, 5678978, 2132457, new Item.Properties().tab(Main.AnimalRemakeTab)));
}
